<?php

namespace app\meizhuangapi\controller\user;


use app\meizhuangapi\model\user\DealerLog as DealerLogModel;
use app\api\controller\user\Log as LogModel;

class Log extends LogModel
{
    /**
     * 明细记录
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function detaillog()
    {
        $param = $this->request->post();
        $model = new DealerLogModel;
        $list = $model->getList($this->user['user_id'],$param['page'],$param['type']);
        foreach ($list as $k=>$v){
            if(!empty($v['username'])){
                $v['nickName']=$v['username'];
            }
        }
        return $this->renderSuccess($list);

    }

}